<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<link href="common/common.css" type="text/css" rel="stylesheet">
<script src="common/sortabletable.js" type="text/javascript"></script>
<script src="common/common.js" type="text/javascript"></script>
</head>
<body>
<div id="rightlayout" style="width: 500px">
<div style="text-align: left; color: red"><html:errors /></div>
<form method="post">
<h1 style="text-align: left">字典表[${param["dicTitle"]}] 的记录</h1>
<input type="button" name="add" class="button" value="添加"
	onClick="redirect('<c:url value="AppDicRecordCreate.jsp?dicName=${param['dicName']}&dicTitle=${param['dicTitle']}"/>')">
<input type="button" name="return" class="button" value="返回"
	onClick="redirect('<c:url
	value="AppDicMainAction.do?method=displayAllAppDic" />')">

<p>
<table width="100%" class="sort-table" id="itemsList" align="right">
	<thead>
		<tr align="center">
			<td>记录的key</td>
			<td>记录的value</td>
			<td>记录描述</td>
			<td>操作</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach var='autoGenDicRecord' items="${AutoGenRecordsLst}">
			<tr onmouseout="changeColor(this,false,'orange');"
				onmouseover="changeColor(this,true,'orange')">
				<td>${autoGenDicRecord.recKey}</td>
				<td>${autoGenDicRecord.recValue}</td>
				<td>${autoGenDicRecord.recDesc}</td>
				<td width="15%"><img src="images/edit.gif" title="编 辑"
					class="btnImg"
					onclick="javascript:confirmClick('是否修改?','<c:url value="AppDicMainAction.do?method=dispUpdateAppDicRecScreen&id=${autoGenDicRecord.id}&dicName=${param['dicName']}&dicTitle=${param['dicTitle']}"/>')">
				<img src="images/delete.gif" title="删除"
					onclick="javascript:confirmClick('是否删除?','<c:url value="AppDicMainAction.do?method=deleteAppDicRec&id=${autoGenDicRecord.id}&dicName=${param['dicName']}&dicTitle=${param['dicTitle']}"/>')">
				</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="5"></td>
		</tr>
	</tfoot>
</table>
</form>
<script type="text/javascript">
//SortTable 定义
	//SortTable 定义
	var st = new SortableTable( document.getElementById("itemsList"), ["String","String","String","None"],'#FFFFCC','#FFFFFF','#B1C3D9');


</script></div>
</body>
</html>

